import request from '@/utils/request'

// 查询定额定量列表
export function listQuantitativeType(query) {
  return request({
    url: '/cases/quantitativeType/list',
    method: 'get',
    params: query
  })
}

// 查询定额定量详细
export function getQuantitativeType(id) {
  return request({
    url: '/cases/quantitativeType/' + id,
    method: 'get'
  })
}

// 新增定额定量
export function addQuantitativeType(data) {
  return request({
    url: '/cases/quantitativeType',
    method: 'post',
    data: data
  })
}

// 修改定额定量
export function updateQuantitativeType(data) {
  return request({
    url: '/cases/quantitativeType',
    method: 'put',
    data: data
  })
}

// 删除定额定量
export function delQuantitativeType(id) {
  return request({
    url: '/cases/quantitativeType/' + id,
    method: 'delete'
  })
}
